package com.dragon.mmochat.message;

import com.dragon.mmochat.MmochatConstant;
import com.dragon.mmochat.model.role.MmochatPlayer;
import com.skymobi.buffer.SkymobiBuffer;
import com.skymobi.message.SkymobiProtocolMessage;

public class Mmochat_1_16S extends SkymobiProtocolMessage {
	MmochatPlayer me;

	public Mmochat_1_16S() {
		setMsgCode(MmochatConstant.MSGCODE_MMOCHAT_S_1_16);
	}

	@Override
	protected void encodeBody(SkymobiBuffer out) {
		out.putUnsignedInt(me.getStateValue(null));
	}

	public MmochatPlayer getMe() {
		return me;
	}

	public void setMe(MmochatPlayer me) {
		this.me = me;
	}

}